package com.stealtime.common.response;
/**
 * 1 开头用户错误
 * @author hetonghai
 *
 */
public enum ResultEnums {
	OK(0, "success"), 
	TOKEN_EXPIRE(10001, "token expire"), 
	PARAM_ERROR(10002, "请求参数错误"), 
	RECORD_DUPLCATED(10003, "该记录已存在"), 
	USER_LOGIN_FAILED(10004, "login fail 登录失败"), 
	USER_NOT_EXIST(10005, "用户不存在"), 

	CAPTCHA_EXPIRE(20005, " captcha expire 验证码错误"), 
	
	
	
	ERROR(99998, "system failed"),
	EXCEPTION(99999, "system exception"),
	;

	private int code;
	private String msg;

	ResultEnums(int code, String msg) {
		this.code = code;
		this.msg = msg;
	}

	public int getCode() {
		return code;
	}

	public void setCode(int code) {
		this.code = code;
	}

	public String getMsg() {
		return msg;
	}

	public void setMsg(String msg) {
		this.msg = msg;
	}

}
